home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / archie38_1.lha / archie-1.4 / msdos / netevent.h < prev   
C/C++ Source or Header  |  1995-01-04  |  3KB  |  65 lines

  1. /* hfile.inc - placed into all .h files to set up for PVCS 
  2.    $Header: /tmp_mnt/com/projects/archie/msdos/RCS/netevent.h,v 1.2 1991/12/13 20:08:56 brendan Exp $
  3.    Revision History ----------------------------------------------------
  4.    $Log: netevent.h,v $
  5.  * Revision 1.2  1991/12/13  20:08:56  brendan
  6.  * entered into RCS
  7.  *
  8.  * 
  9.  *    Rev 1.0   15 Jan 1990 19:29:26   bkc
  10. */
  11.  
  12.  
  13. /*
  14. *  Events for event processing in NCSA Telnet.
  15. *  Used for netgetevent().
  16. */
  17.  
  18.  
  19. #define USERCLASS    1    /* the user program will accept these events */
  20. #define ICMPCLASS    2    /* ICMP in netsleep will look for these */
  21. #define ERRCLASS    4    /* the user may or may not read these error messages */
  22. #define SCLASS        8    /* the background server will take these */
  23. #define CONCLASS    0x10    /* the application manages connections with these */
  24.  
  25. #define ERR1    1        /* an error message is waiting, ERRCLASS */
  26.  
  27. #define IREDIR    1        /* ICMP redirect, ICMPCLASS */
  28.  
  29. #define CONOPEN 1        /* connection has opened, CONCLASS */
  30. #define CONDATA 2       /* there is data available on this connection */
  31. #define CONCLOSE 3        /* the other side has closed its side of the connection */
  32. #define CONFAIL 4        /* connection open attempt has failed */
  33.  
  34. #define UDPDATA 1        /* UDP data has arrived on listening port, USERCLASS */
  35. #define DOMOK    2        /* domain name ready */
  36. #define DOMFAIL 3        /* domain name lookup failed */
  37. #define FTPCOPEN 20     /* FTP command connection has opened */
  38. #define FTPCLOSE 21     /* FTP command connection has closed */
  39. #define FTPBEGIN 22     /* FTP transfer beginning, dat =1 for get, 0 for put */
  40. #define FTPEND   23     /* FTP transfer ending */
  41. #define FTPLIST  24     /* FTP file listing taking place */
  42. #define FTPUSER  25     /* FTP user name has been entered */
  43. #define FTPPWOK    26        /* FTP password verified */
  44. #define FTPPWNO 27        /* FTP password failed */
  45. #define RCPBEGIN 30        /* RCP beginning */
  46. #define RCPEND 31        /* RCP ending */
  47.  
  48. #define UDPTO 1            /* UDP request from DOMAIN timed out, SCLASS */
  49. #define FTPACT 2        /* FTP transfer is active, keep sending */
  50. #define TCPTO  3        /* TCP for DOMAIN timed out */
  51. #define RCPACT 4        /* rcp is active, needs CPU time */
  52. #define RETRYCON 5        /* retry connection packet, might be lost */
  53. #define DOMNEXT 6               /* search next domain list entry */
  54. #define E_CLOCK 7
  55. #ifdef    SCRIPT
  56. #define    SCRIPT_EVENT    1    /* script next step */
  57. #define    SCRIPT_DATA    2    /* received some data */
  58. #define    SCRIPT_PROC    3    /* just process stuff */
  59. #define    SCRIPT_CLOSE    4    /* connection was closed */
  60. #define    SCRIPT_FORCE    5    /* user forced connection closed */
  61. #define    SCRIPT_DOMAIN    6    /* domain name lookup ok */
  62. #define    SCRIPT_FUNC    8
  63. /* int Script_Event(int type, void *twin, unsigned int data); */
  64. #endif
  65.